package com.film.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SysResult {
    private Integer status;
    private String msg;
    private Object data;
    public  static SysResult fail(){
        return new SysResult().setStatus(201).setMsg("调用失败").setData(null);
    }
    public static SysResult success(){
        return new SysResult().setStatus(200).setMsg("调用成功").setData(null);
    }
    public static SysResult success(Object data){
        return new SysResult().setStatus(200).setMsg("调用成功").setData(data);
    }
}
